<?php

return [
    'enable'  => true,
    'manager' => [
        // 缓存前缀
        'prefix'    => 'xpzhu_jwt',
        // 黑名单缓存名
        'blacklist' => 'blacklist',
        // 白名单缓存名
        'whitelist' => 'whitelist',
    ],
    'stores'  => [
        // 单应用
        'default' => [
            'sso_enable'        => false,// false是多点登录，true是单点登录
            'signer_key'        => 'ga4FGlxSzNbQKdfNwRhIYJ3BAuPpiEWqxAToNHZqJVvMwWOsa0yKlm1g2fnPuDhz',
            'public_key'        => 'file://path/public.key',
            'private_key'       => 'file://path/private.key',
            'not_before'        => 0,
            'expires_at'        => 3600,
            'refresh_ttl'       => 7200,
            'signer'            => 'Lcobucci\JWT\Signer\Hmac\Sha256',
            'type'              => 'Header',
            //'type'              => 'Cookie',
            //'type'              => 'Url',
            //'type'              => 'Header|Url',// 支持多种方式获取
            'iss'               => 'jwt.client.default',
            'aud'               => 'jwt.server.default',
            'automatic_renewal' => false,
        ],
        // 多应用
        'admin'   => [
            'sso_enable'        => false,// false是多点登录，true是单点登录
            'signer_key'        => 'ga4FGlxSzNbQKdfNwRhIYJ3BAuPpiEWqxAToNHZqJVvMwWOsa0yKlm1g2fnPuDhz',
            'not_before'        => 0,
            'expires_at'        => 3600,
            'refresh_ttl'       => 7200,
            'signer'            => 'Lcobucci\JWT\Signer\Hmac\Sha256',
            'type'              => 'Header',
            //'type'              => 'Cookie',
            //'type'              => 'Url',
            //'type'              => 'Header|Url',// 支持多种方式获取
            'iss'               => 'jwt.client.admin',
            'aud'               => 'jwt.server.admin',
            'automatic_renewal' => false,
        ],
    ],
];
